package com.cassio.stores;

import android.app.Application;
import android.content.Context;

public class MainApplication extends Application {
	
	private static Context context;

    public void onCreate(){
    	context = getApplicationContext();
    }

    /**
     * Return the context of the single, global Application object of the
     * current process.  This generally should only be used if you need a
     * Context whose lifecycle is separate from the current context, that is
     * tied to the lifetime of the process rather than the current component.
     * 
     * @return Context ApplicationContext
     */
    public static Context getContext(){
    	return context;
    }
}
